<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="author" content="Aria">
    <meta name="copyright" content="Aria">
    <title>照片墙后台管理系统</title>
    <link href="/photowall/Public/admin/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
    <link href="/photowall/Public/admin/css/ie.css" rel="stylesheet" type="text/css"/>
    <link href="/photowall/Public/admin/css/cropper.min.css" rel="stylesheet" type="text/css"/>
    <link href="/photowall/Public/admin/css/core.css" rel="stylesheet" type="text/css"/>
    <script src="/photowall/Public/admin/js/jquery-1.11.1.min.js"></script>
    <script src="/photowall/Public/admin/js/bootstrap.min.js"></script>
    <script src="/photowall/Public/admin/js/cropper.min.js"></script>
    <script src="/photowall/Public/admin/js/ajaxfileupload.js"></script>
    <script src="/photowall/Public/admin/js/Sortable.min.js"></script>
    <script src="/photowall/Public/admin/js/jquery.binding.js"></script>
    <script src="/photowall/Public/admin/js/manage.js"></script>
</head>
<body class="manage">
<div class="manage-wrap">
    <!-- Nav tabs -->
    <ul class="nav nav-tabs">
        <a class="log-out">注销登录</a>
        <?php if(is_array($nav)): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li class="<?php if(($vo['nav_id']) == $_GET['nav_id']): ?>active<?php endif; ?>"><a href="/photowall/Admin/<?php echo ($vo["href"]); ?>/nav_id/<?php echo ($vo["nav_id"]); ?>"><?php echo ($vo["title"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
<!-- Tab panes -->
<div class="tab-content">


<div class="tab-pane active" id="profile">
    <div class="user-main">
    <div class="page-header">
    	<h1>管理员工<small></small></h1>
    </div>
    <div class="btnmenu">
    	<button type="button" class="btn btn-primary" onclick="window.open('/photowall/Admin/Staff/update')">添加员工</button>
        <div class="shezhi">
        	<select name="">
            <?php if(is_array($group)): $i = 0; $__LIST__ = $group;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option value="<?php echo ($vo["id"]); ?>"><?php echo ($vo["name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
            </select>
        </div>
    </div>
    <table class="table table-hover manage-user" id="tbody">
        <thead><tr><td>顺序</td><td>姓名</td><td>职位</td><td>QQ</td><td>电话</td><td>地区</td><td>优先级</td><td>操作</td></tr></thead>
        <tbody>
        <?php if(is_array($staff)): $k = 0; $__LIST__ = $staff;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?><tr><td><?php echo ($k); ?></td><td><?php echo ($vo["name"]); ?></td><td><?php echo ($vo["duty"]); ?></td><td><?php echo ($vo["qq"]); ?></td><td><?php echo ($vo["phone"]); ?></td><td><?php echo ($vo["area"]); ?></td><td><?php echo ($vo["order_id"]); ?></td><td><a class="label label-primary " onclick="window.open('/photowall/Admin/Staff/update/staff_id/<?php echo ($vo["staff_id"]); ?>')">编辑</a>  <a class="label label-danger user-delete" href="/photowall/Admin/Staff/del/staff_id/<?php echo ($vo["staff_id"]); ?>">删除</a></td></tr><?php endforeach; endif; else: echo "" ;endif; ?>
        </tbody>

    </table>
<?php echo ($page); ?>
    <script>
    $(function() {
		$('#profile').find('tbody').sortable({animation: 150});
	});
    </script>
    </div>
    
    
    
</div>



</div>
</div>

</body>
</html>